package com.dingup.provider.mapper;

import com.dingup.api.model.student.Student;
import com.dingup.api.model.sys.SysDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysDeptMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysDept record);

    int insertSelective(SysDept record);

    SysDept selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysDept record);

    int updateByPrimaryKey(SysDept record);

    List<SysDept> getAll();

    List<SysDept> getDeptByUserId(String userId);

    String getChildDeptIds(Long rootId);

    List<SysDept> getDeptByDeptIdIn(@Param("deptIds") List<Long> deptIds);
}